<?php
if (!defined('IN_XLP')) {
    exit('Access Denied');
}
?>
<table class="table table-striped b-t">
<thead>
<tr>
  <th align="center">ID</th>
  <th align="center">动作</th>
  <th align="center">积分类型</th>
  <th align="center">积分数</th>
  <th align="center">来源</th>
  <th align="center">说明</th>
  <th align="center">时间</th>
</tr>
</thead>
<tbody>
<?php
if ($rs){
  foreach($rs as $val){
?>
<tr>
  <td style="height:30px; line-height:30px; padding-left:5px"><?php echo $val['id'];?></td>
  <td style="height:30px; line-height:30px"><?php echo $status[$val['act']];?></td>
  <td style="height:30px; line-height:30px"><?php echo $_type[$val['type']];?></td>
  <td style="height:30px; line-height:30px"><?php echo $val['credit'];?></td>
  <td style="height:30px; line-height:30px"><?php echo $creditType[$val['event']];?></td>
  <td style="height:30px; line-height:30px"><?php echo $val['content'];?></td>
  <td style="height:30px; line-height:30px"><?php echo outTime($val['infotime']);?></td>
</tr>
<?php
  }
}else{
?>
<tr>
  <td colspan="20" align="center" style="height:30px; line-height:30px">暂无数据</td>
</tr>
<?php
}
?>
</tbody>
</table> 
<footer class="panel-footer"> 
<div class="row"> 
<div class="col-sm-12 text-right text-center-sm"> 
<?php echo page($total,$p,'ajax',20);?>
</div> 
</div> 
</footer>